package com.zretc.service.impl;

import com.zretc.dao.OrderDetailMapper;
import com.zretc.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class OrderDetailServiceImpl implements OrderDetailService {

    @Autowired
    private OrderDetailMapper orderDetailMapper;

    @Override
    public List<Map<String,Object>> getCinemaNameAndBox(Integer isDelete) {

        List<Map<String, Object>> cinemaNameAndBox = orderDetailMapper.findCinemaNameAndBox(isDelete);

        return cinemaNameAndBox;
    }

    @Override
    public List<Map<String, Object>> getMovieNameAndBox(Integer isDelete) {

        List<Map<String, Object>> movieNameAndBox = orderDetailMapper.findMovieNameAndBox(isDelete);

        return movieNameAndBox;
    }
}
